package io.bdmc.modules.bss.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 实体
 * </p>
 *
 * @author 黄露
 * @since 2021-06-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
// "DeviceMachineFms对象", description = "")
public class DeviceMachineFms extends Model<DeviceMachineFms> {

  private static final long serialVersionUID = 1L;

  @TableId(value = "machine_fms_id", type = IdType.AUTO)
  private Integer machineFmsId;

  // "设备id")
  private Integer deviceId;

  // "单盘sn")
  private String diskSn;

  // "量程")
  private String endPosition;

  // "脉宽")
  private String pulseWidth;

  // "分辨率")
  private String resolution;

  // "模式")
  private String model;

  // "状态")
  private String state;

  // "折射率")
  private String RefIndex;

  // "测量时间")
  private Integer measureTime;

  // "创建时间")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  private LocalDateTime createTime;

  // "更新时间")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  private LocalDateTime updateTime;

  private Boolean intervalSave;

  @Override
  public Serializable pkVal() {
    return this.machineFmsId;
  }

}
